package profile.oat;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.Toast;


public class ProfileActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        ImageButton imaButton1 = (ImageButton) findViewById(R.id.imageButton1);
        
		imaButton1.setOnClickListener(new OnClickListener() {
        public void onClick(View v) { 
        Intent intent = new Intent(getApplicationContext(),Profile1.class);
        Log.i("oat", "preparing intent");
        startActivity(intent);
        Log.i("oat", "Intent been called");
        
        }
        });
		
    	ImageButton imaButton2 = (ImageButton) findViewById(R.id.imageButton2);
        
		imaButton2.setOnClickListener(new OnClickListener() {
        public void onClick(View v) { 
        Intent intent = new Intent(getApplicationContext(),Photo1.class);
        Log.i("oat", "preparing intent");
        startActivity(intent);
        Log.i("oat", "Intent been called");
        
        }
        });
		Toast.makeText(getApplicationContext(), "onCreate...", Toast.LENGTH_SHORT).show();
		
    }//
    
    /*@Override
    protected void onRestart() {
    super.onRestart();
    Toast.makeText(getApplicationContext(),"onRestart...", Toast.LENGTH_SHORT).show();
    }

    @Override
    protected void onStart() {
    super.onStart();
    Toast.makeText(getApplicationContext(), "onStart...", Toast.LENGTH_SHORT).show();
    }

    @Override
    protected void onResume() {
    super.onResume();
    Toast.makeText(getApplicationContext(), "onResume...", Toast.LENGTH_SHORT).show();
    }

    @Override
    protected void onPause() {
    super.onPause();
    Toast.makeText(getApplicationContext(), "onPause...", Toast.LENGTH_SHORT).show();
    }

    @Override
    protected void onStop() {
    super.onStop();
    Toast.makeText(getApplicationContext(), "onStop...", Toast.LENGTH_SHORT).show();
    }

    @Override
    protected void onDestroy() {
    super.onDestroy();
    Toast.makeText(getApplicationContext(), "onDestroy...", Toast.LENGTH_SHORT).show();
    }

    @Override
    protected void onRestoreInstanceState(Bundle savedInstanceState) {
    super.onRestoreInstanceState(savedInstanceState);
    Toast.makeText(getApplicationContext(), "onRestoreInstanceState", Toast.LENGTH_SHORT).show();
    }

    @Override
    protected void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    Toast.makeText(getApplicationContext(), "onSaveInstanceState...", Toast.LENGTH_SHORT).show();
    }*/
 }//end
    



